package MyStack;

public interface Operations {

    //入栈
    public abstract int push(int e);

    //出栈
    public abstract int pop();

    //获取栈顶元素
    public abstract int peek();

    //获取栈中有效元素个数
    public abstract int size();

    //检测栈是否为空
    public abstract boolean empty();
}
